//
//  MessageInfoTableViewCell.h
//  BGM
//
//  Created by liuqin on 2018/12/4.
//  Copyright © 2018 com.alirtc.demo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CommonBtn.h"


@protocol MessageInfoTableViewCellDelegate <NSObject>

-(void)clickAll;
-(void)clickImage:(int)index;
-(void)clickCommen;

@end


@interface MessageInfoTableViewCell : UITableViewCell

@property (nonatomic, strong)UIView *bgView;
@property (nonatomic, strong)UIButton *typeImage;
@property (nonatomic, strong)UILabel *titleLabel;
@property (nonatomic, strong)CommonBtn *address;
@property (nonatomic, strong)CommonBtn *time;
@property (nonatomic, strong)CommonBtn *pinglun;
@property (nonatomic, strong)CommonBtn *forward;

@property (nonatomic, strong)UILabel *messageLabel;
@property (nonatomic, strong)UIView *bgImageView;;


@property (nonatomic, weak)id<MessageInfoTableViewCellDelegate> meseeageInfoDeleagte;

- (void)sizeToFitMessage:(NSDictionary *)dic isPhoto:(BOOL) isPhoto isMe:(BOOL) isMe isPublic:(BOOL)isPublic;
- (void)sizeToFitMessageALL:(NSDictionary *)dic isPhoto:(BOOL) isPhoto isMe:(BOOL) isMe isPublic:(BOOL)isPublic;


+ (float)returnCellHight:(NSDictionary *)dic isPhtot:(BOOL) isPhoto isMe:(BOOL) isMe isPublic:(BOOL)isPublic;
+ (float)returnCellHightALL:(NSDictionary *)dic isPhtot:(BOOL) isPhoto isMe:(BOOL) isMe isPublic:(BOOL)isPublic;


@end


